﻿using System.Collections.Generic;
using LinqToDB.Mapping;

namespace ggHD.Domain.BizObj
{
    [Table(Schema = "dbo", Name = "webpages_Roles")]
    public partial class UserRoles
    {
        [PrimaryKey, Identity]
        public int RoleId { get; set; } // int
        [Column, NotNull]
        public string RoleName { get; set; } // nvarchar(256)

        #region Associations

        /// <summary>
        /// fk_RoleId_BackReference
        /// </summary>
        [Association(ThisKey = "RoleId", OtherKey = "RoleId", CanBeNull = false)]
        public IEnumerable<webpages_UsersInRole> fkRoleIds { get; set; }

        /// <summary>
        /// FK__TiketsOfU__RoleI__540C7B00_BackReference
        /// </summary>
        [Association(ThisKey = "RoleId", OtherKey = "RoleId", CanBeNull = false)]
        public IEnumerable<TiketsOfUser> TiketsOfURoleI540C7B00 { get; set; }

        #endregion
    }
}